网络:IP/子网
本页介绍在工业网络环境中正确部署和管理 OV80i 摄像头所必需的 IP 地址分配与子网概念。
IP Addressing Fundamentals for OV80i
Default Network Configuration
OV80i 具备用于快速部署的预定义网络设置:
Factory Default Settings:
- Primary IP Address: 10.250.0.100 (static)
- Subnet Mask: 255.255.255.0 (/24 network)
- DHCP: Disabled by default
IP 地址格式为 XXX.XXX.XXX.YYY。通常由贵方 IT 部门定义,其中 XXX.XXX.XXX 在所有设备上应保持一致,YYY 为设备特定部分,因此请为计算机选择一个在生产线中未被其他设备使用的 IP。
Network Accessibility Requirements
Same Subnet Principle: 连接计算机与相机时,确保两台设备处于同一子网非常重要。如果计算机和相机的子网配置不同,计算机可能无法定位到相机,连接可能会失败。
Subnet Planning and Network Architecture
Understanding Subnet Segmentation
Subnet Mask 255.255.255.0 Explanation: 该子网可通过子网掩码 255.255.255.0 来识别。该子网内的设备将拥有如 192.168.0.1、192.168.0.2 等 IP 地址。
Single Subnet Industrial Example:
Factory Network Subnet (10.250.0.x):
- OV80i Camera: 10.250.0.100 (factory default)
- QR Code Reader: 10.250.0.20
- PLC Controller: 10.250.00.50
- HMI Panel: 10.250.0.30
- Control PC: 10.250.0.10
- Subnet Mask: 10.250.0.0
- Purpose: All production devices on same network for easy communication
Alternative Subnet Assignment: If your factory uses a different subnet range, all devices can be configured accordingly:
- OV80i Camera: 10.250.0.100
- QR Code Reader: 10.250.0.20
- PLC Controller: 10.250.0.50
- Control PC: 10.250.0.10
- Subnet Mask: 255.255.255.0
Device-Specific IP Assignment Strategy
Unique IP Requirement: Each device on the network must have a unique IP address within its subnet. The device-specific portion (YYY) should be:
- Unique - Not used by any other device on the line
- Documented - Recorded for maintenance and troubleshooting
- Planned - Allocated according to device type or location
Static IP vs DHCP Configuration
Static IP Addressing (Recommended for Production)
When to Use Static IP:
- ✅ Production environments - Consistent, predictable addressing
- ✅ Critical systems - Eliminates DHCP dependencies
- ✅ Multi-camera installations - Simplified management and troubleshooting
- ✅ PLC integration - Fixed addressing required for industrial protocols
Static IP Benefits:
- Reliability - No dependency on DHCP server availability
- Predictability - Consistent addressing for maintenance
- Integration - Required for many industrial automation systems
- Security - Easier to implement access control and monitoring
DHCP 地址分配(开发与测试)
DHCP 功能:
该 IP 地址可配置,并可通过 DHCP 自动分配,或根据您的网络需求进行修改。
何时使用 DHCP:
- ✅ 开发环境 — 简化网络设置
- ✅ 测试场景 — 降低配置开销
- ✅ 临时安装 — 快速部署,无需 IP 规划
- ✅ 拥有 DHCP 预留的网络 — 将 DHCP 的便利性与静态行为结合
IP 冲突的预防与解决
常见 IP 冲突场景
路由器 IP 冲突:
您的网络可能使用与相机相同的 IP,例如 10.250.0.100(某些路由器也使用相同的默认 IP)。由于存在 IP 冲突,这会造成混淆。
预防策略:
为防止 IP 冲突并确保相机的稳定连通性,务必为网络中的每台设备配置唯一的 IP 地址。
IP 冲突检测与解决
检测方法:
要检测 IP 冲突,请使用 IP 扫描工具来识别共享相同 IP 地址的设备。
解决流程:
如发现冲突,请为一个或多个设备调整 IP 地址以确保唯一性并消除冲突。
冲突时的紧急访问:
通过 Micro-USB 连接并访问 http://192.168.55.1
,即可在无论以太网配置如何的情况下进入相机 UI,然后将 IP 更改为唯一地址。
工业网络集成
TCP 通信要求
网络范围兼容性:
相机的 IP 地址必须与其通信的设备处于同一 IP 范围内。
Node-RED TCP 集成:
- TCP 输入端口 - 相机在分配的端口上监听
- TCP 输出 - 相机向指定设备 IP 地址发送数据
- 端口管理 - 为通信分配空闲端口
- IP 范围匹配 - 确保设备间通信成功
多相机网络拓扑
多相机的子网规划:
- 相机 1:10.250.0.101
- 相机 2:10.250.0.102
- 相机 3:10.250.0.103
- 控制 PC:10.250.0.10
- PLC 网关:10.250.0.50
网络分段的好处:
- 流量隔离 - 将视觉流量与控制流量分离
- 性能优化 - 减少网络拥塞
- 安全性提升 - 限制网络分段之间的访问
- 故障排除简化 - 将问题隔离到特定子网
配置最佳实践
网络文档要求
- IP 地址注册表 - 记录所有分配的地址
- 子网图 - 网络拓扑的可视化表示
- 设备清单 - IP 地址与物理设备之间的对应关系
- 变更管理 - 跟踪 IP 地址随时间的修改
网络监控与维护
持续的网络管理:
- IP 扫描工具 - 定期冲突检测
- 性能监控 - 网络利用率和响应时间
- 文档更新 - 维护当前的网络拓扑图
- 安全审计 - 定期审查网络访问和权限